//
//  XSM3u8Download.h
//  XSDownloadDemo
//
//  Created by 大帅 on 2024/1/4.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@protocol XSM3u8DownloadDelegate <NSObject>

@optional
/// 下载状态改变
- (void)exporter:(id<MCSAssetExporter>)exporter statusDidChange:(MCSAssetExportStatus)status mediaModel:(XSTestModel *)mediaModel;
/// 下载进度改变
- (void)exporter:(id<MCSAssetExporter>)exporter progressDidChange:(float)progress mediaModel:(XSTestModel *)mediaModel;

@end

@interface XSM3u8Download : NSObject

/// 下载监听对象
@property (nonatomic, strong, readonly) id<MCSAssetExporter> exporter;

/// 代理回调属性
@property (nonatomic, weak) id <XSM3u8DownloadDelegate> delegate;

- (instancetype)initWithMedia:(XSTestModel *)model;

@end

NS_ASSUME_NONNULL_END
